package c.a.a.z.c;

import android.graphics.PointF;
import c.a.a.e0.f;
import c.a.a.f0.a;
import c.a.a.f0.c;
import java.util.List;

/* compiled from: IntegerKeyframeAnimation */
public class e extends f<Integer> {
    public e(List<a<Integer>> list) {
        super(list);
    }

    public Object f(a aVar, float f) {
        return Integer.valueOf(j(aVar, f));
    }

    public int j(a<Integer> aVar, float f) {
        if (aVar.b == null || aVar.c == null) {
            throw new IllegalStateException("Missing values for keyframe.");
        }
        c cVar = this.e;
        if (cVar != null) {
            Integer num = (Integer) cVar.a(aVar.e, aVar.f.floatValue(), aVar.b, aVar.c, f, d(), this.d);
            if (num != null) {
                return num.intValue();
            }
        }
        if (aVar.i == 784923401) {
            aVar.i = ((Integer) aVar.b).intValue();
        }
        int i = aVar.i;
        if (aVar.j == 784923401) {
            aVar.j = ((Integer) aVar.c).intValue();
        }
        int i2 = aVar.j;
        PointF pointF = f.a;
        return (int) ((f * ((float) (i2 - i))) + ((float) i));
    }
}
